; Bed Mesh Leveling

if (!move.axes[0].homed || !move.axes[1].homed || !move.axes[2].homed || !move.axes[2].homed)
    G28

G1 H0 Z3 F5000		; lift Z 3mm

G29 S0

;disable mesh leveling, needs to be enabled at the start of your print and disabled again when finished.
G29 S2

; Park the head
G1 X{global.xFrontPark} Y{global.yFrontPark} F50000
